home *** CD-ROM | disk | FTP | other *** search
/ Alde ADA 5 #1 / ADA CD-ROM - Alde Publishing.iso / cm / wist32.wid < prev    next >
Encoding:
Text File  |  1988-05-03  |  5.0 KB  |  106 lines

  1. --= WID = SIMTEL20 Ada Software Repository Item Description File = WID =--
  2. -- WIS TOOL NUMBER   : WIS_TOOL_32
  3. -- LOCATION          : ASR
  4. -- CATEGORY LEVEL 1  : Components
  5. -- CATEGORY LEVEL 2  : Count Ada Statements
  6. -- CATEGORY LEVEL 3  : Count of Ada Statements 1
  7. -- CATEGORY LEVEL 4  : 
  8. -- INDEX             : Count Ada Statements
  9. -- INDEX             : Statements
  10. -- INDEX             : Statements, Ada
  11. -- TAXONOMY          : !Design, Implementation and Test!Design Analysis!Count Ada Statements Program
  12. -- DEPENDENCIES      : 
  13. -- SEE ALSO          : 
  14. --= ABSTRACT             ===============================================--
  15. --  1. TOOL NAME        : CAS Ada Statement Counter
  16. --  2. TOOL NUMBER      : 32-1
  17. -- 
  18. --  3. CONTRACTOR       :
  19. --  3a      CONTRACT #   : Not Applicable
  20. --  3b      NAME         : WIS JPMO
  21. --  3c      LOCATION     : Washington D.C.
  22. --                         203306600
  23. --  3d      POC          : Major Terry Courtwright
  24. --                         (703)285-5065
  25. -- 
  26. --  4. TOOL DESCRIPTION :
  27. --        This function calculates the "STATEMENTS" of a valid Ada fragment
  28. --        specified by a FILE_NAME string parameter.
  29. --        It need not be a complete compilation unit
  30. --        but it should have closed all open parentheses and string brackets.
  31. --        The number of STATEMENTS of code is returned as an INTEGER.
  32. -- 
  33. --        The Ada statement is defined by a semicolon terminator
  34. --        outside of comments, parentheses, or string or character literals.
  35. --        This definition is insensitive to formatting or layout of the source.
  36. -- 
  37. --        There are exotic cases for which this will misestimate the count
  38. --        but we have never encountered one in real code.
  39. -- 
  40. --        This copy of the function is embedded in a test and driver program.
  41. --        Running the program on its own source file should give
  42. --        The driver has an additional feature of correcting for the common
  43. --        error of leaving out the extension on a file name.
  44. --        The nature of this extension is system dependent and a "TXT" is used.
  45. -- 
  46. --      function COUNT_OF_ADA_STATEMENTS (FILE_NAME  : STRING) return INTEGER
  47. --      --  calculates the "STATEMENTS" in an Ada fragment speced by FILE_NAME.
  48. --      --  This copy of the function is embedded in a test and driver program.
  49. --      --  Running the CAS program on its own source file should give
  50. --      --
  51. --      --COUNT_OF_ADA_STATEMENTS:
  52. --      --Input file name terminated by <RETURN>  => CAS.TXT
  53. --      --        59 ADA STATEMENTS IN FILE CAS.TXT
  54. --      --
  55. --      --  The driver has an additional feature of correcting for the common
  56. --      --  error of leaving out the extension on a file name.
  57. --      --  The nature of this extension is system dependent; a "TXT" is used.
  58. -- 
  59. --  5. SCHEDULE         :
  60. --  5a      PDR/CDR      :
  61. --  5b      DELIVERY     : Available
  62. --  5c      DISTRIBUTION : 12 August 1985 GTE, IBM, NOSC, SIMTEL20
  63. --  
  64. --  6. CHARACTERISTICS  :
  65. --  6a      DEVELOPMENT APPROACH : Code in Ada
  66. --  6b      HOST MACHINE     : VAX, Intellimac, WICAT
  67. --  6c      OPERATING SYSTEM : ROS
  68. --  6d      COMPILER         : Telesoft 1.3 (unvalidated)
  69. --  6e      DEPENDENCIES     :
  70. --  6f      NUMBER OF STATEMENTS : 54
  71. -- 
  72. --  7. DOCUMENTATION    : Source comments only
  73. --  8. PORTABILITY      : The code is nearly machine independent.  It has been
  74. --                        ported across at least three machines (ROS with
  75. --                        Telesoft 1.3 (unval), VMS with DEC Ada and UNIX).
  76. --                        Port time has shown to be 1 to 2 hours.
  77. --                        compiled, executed, 1 modification
  78. -- 
  79. --  9. WIS USE          :
  80. --  9a FOUNDATION AREA  : Design Analysis
  81. --  9b WIS USE AREA     : Design, Implementation and Test
  82. -- 10. COMMENTS         :
  83. -- 11. LAST CHANGE TO DATA : 21 March 1986.
  84. --= FILE LISTING         ===============================================--
  85. -- FILE SPECS        : PD:<ADA.COMPONENTS>COUNT*.*
  86. -- DIRECTORY DISPLAY :
  87. -- Directory   PD:<ADA.COMPONENTS>
  88. --      File Name     Byte Count  Line Count
  89. --   ---------------  ----------  ----------
  90. --   COUNTADA.CMM           1217          33
  91. --   COUNTADA.PRO           4168          84
  92. --   COUNTADA.SRC           4587         135
  93. --   ===============  ==========  ==========
  94. --     3 Files              9972         252
  95. --= DISCLAIMER           ===============================================--
  96. --     This software and its documentation are provided "AS IS" and
  97. -- without any expressed or implied warranties whatsoever.  No warranties
  98. -- as to performance, merchantability, or fitness for a particular
  99. -- purpose exist.
  100. --     The user is advised to test the software thoroughly before
  101. -- relying on it.  The user must assume the entire risk and liability of
  102. -- using this software.  In no event shall any person or organization of
  103. -- people be held responsible for any direct, indirect, consequential or
  104. -- inconsequential damages or lost profits.
  105. --======================================================================--
  106.